package com.hou.houlymall.product.feign;

import com.hou.common.to.es.SkuEsModel;
import com.hou.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author H
 * @create 2021-08-06 10:49
 */
@FeignClient("houlymall-search")
public interface SearchFeignService {

    /**
     * 数据保存到es
     * @param skuEsModels ...
     * @return ...
     */
    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
